﻿using LS.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LS.Tests.DbTest
{
    public class CardContextInitializer : DropCreateDatabaseIfModelChanges<CardContext>
    {
        
        protected override void Seed(CardContext context)
        {
            var card = new Card()
            {
                SeiralNumber = "000-000-000-000",
                UpdateDate = DateTime.UtcNow,
            };
            context.Cards.Add(card);
            context.SaveChanges();
            base.Seed(context);
        }
    }

    public class MemberCardInitializer : DropCreateDatabaseIfModelChanges<MemberCardContext>
    {
        protected override void Seed(MemberCardContext context)
        {
            base.Seed(context);
        }
    }

    public class LSDbInitializer : DropCreateDatabaseAlways<LSDbContext> 
    {
        protected override void Seed(LSDbContext context) {
            base.Seed(context);
        }
    }
}
